package com.hos.db.entity.ill;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hos.utile.JsonUtile;
import com.hos.utile.StringUtile;

import java.util.Date;
import java.util.List;

/**
 * 影像资料
 * Created by guom on 2019/3/10.
 */
public class IllDataEntity {

    private String illId;//病例id
    private String verifyTime;//检验时间
    private String verifyDescribe;//检验描述
    @JsonIgnore
    private String verifyUrls;//检验url
    private String[] verifyUrl;
    //
    private String ecgTime;//心电图时间
    private String ecgDescribe;//心电图描述
    private String ecgUrls;//心电图url
    private String[] ecgUrl;
    //
    private String ultrasoundTime;//超声时间
    private String ultrasoundDescribe;//超声描述
    @JsonIgnore
    private String ultrasoundUrls;//超声url
    private String[] ultrasoundUrl;
    //
    private String stillTime;//静态影像时间
    private String stillDescribe;//静态影像描述
    @JsonIgnore
    private String stillUrls;//静态影像url
    private String[] stillUrl;
    //
    private String moveTime;//动态影像时间
    private String moveDescribe;//动态影像描述
    @JsonIgnore
    private String moveUrls;//动态影像url
    private List<IllVideoEntity> moveUrl;
    private Date createTime;// 病例创建时间

    public String getIllId() {
        return illId;
    }

    public void setIllId(String illId) {
        this.illId = illId;
    }

    public String getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(String verifyTime) {
        this.verifyTime = verifyTime;
    }

    public String getVerifyDescribe() {
        return verifyDescribe;
    }

    public void setVerifyDescribe(String verifyDescribe) {
        this.verifyDescribe = verifyDescribe;
    }

    public String getVerifyUrls() {
        return verifyUrls;
    }

    public void setVerifyUrls(String verifyUrls) {
        this.verifyUrls = verifyUrls;
    }

    public String[] getVerifyUrl() {
        if (verifyUrl == null && !StringUtile.isEmpty(verifyUrls)) {
            verifyUrl = verifyUrls.split(",");
        }
        return verifyUrl;
    }

    public void setVerifyUrl(String[] verifyUrl) {
        this.verifyUrl = verifyUrl;
    }

    public String getEcgTime() {
        return ecgTime;
    }

    public void setEcgTime(String ecgTime) {
        this.ecgTime = ecgTime;
    }

    public String getEcgDescribe() {
        return ecgDescribe;
    }

    public void setEcgDescribe(String ecgDescribe) {
        this.ecgDescribe = ecgDescribe;
    }

    public String getEcgUrls() {
        return ecgUrls;
    }

    public void setEcgUrls(String ecgUrls) {
        this.ecgUrls = ecgUrls;
    }

    public String[] getEcgUrl() {
        if (ecgUrl == null && !StringUtile.isEmpty(ecgUrls)) {
            ecgUrl = ecgUrls.split(",");
        }
        return ecgUrl;
    }

    public void setEcgUrl(String[] ecgUrl) {
        this.ecgUrl = ecgUrl;
    }

    public String getUltrasoundTime() {
        return ultrasoundTime;
    }

    public void setUltrasoundTime(String ultrasoundTime) {
        this.ultrasoundTime = ultrasoundTime;
    }

    public String getUltrasoundDescribe() {
        return ultrasoundDescribe;
    }

    public void setUltrasoundDescribe(String ultrasoundDescribe) {
        this.ultrasoundDescribe = ultrasoundDescribe;
    }

    public String getUltrasoundUrls() {
        return ultrasoundUrls;
    }

    public void setUltrasoundUrls(String ultrasoundUrls) {
        this.ultrasoundUrls = ultrasoundUrls;
    }

    public String[] getUltrasoundUrl() {
        if (ultrasoundUrl == null && !StringUtile.isEmpty(ultrasoundUrls)) {
            ultrasoundUrl = ultrasoundUrls.split(",");
        }
        return ultrasoundUrl;
    }

    public void setUltrasoundUrl(String[] ultrasoundUrl) {
        this.ultrasoundUrl = ultrasoundUrl;
    }

    public String getStillTime() {
        return stillTime;
    }

    public void setStillTime(String stillTime) {
        this.stillTime = stillTime;
    }

    public String getStillDescribe() {
        return stillDescribe;
    }

    public void setStillDescribe(String stillDescribe) {
        this.stillDescribe = stillDescribe;
    }

    public String getStillUrls() {
        return stillUrls;
    }

    public void setStillUrls(String stillUrls) {
        this.stillUrls = stillUrls;
    }

    public String[] getStillUrl() {
        if (stillUrl == null && !StringUtile.isEmpty(stillUrls)) {
            stillUrl = stillUrls.split(",");
        }
        return stillUrl;
    }

    public void setStillUrl(String[] stillUrl) {
        this.stillUrl = stillUrl;
    }

    public String getMoveTime() {
        return moveTime;
    }

    public void setMoveTime(String moveTime) {
        this.moveTime = moveTime;
    }

    public String getMoveDescribe() {
        return moveDescribe;
    }

    public void setMoveDescribe(String moveDescribe) {
        this.moveDescribe = moveDescribe;
    }

    public String getMoveUrls() {
        return moveUrls;
    }

    public void setMoveUrls(String moveUrls) {
        this.moveUrls = moveUrls;
    }

    public List<IllVideoEntity> getMoveUrl() {
        if (moveUrl == null && !StringUtile.isEmpty(moveUrls)) {
            moveUrl = (List<IllVideoEntity>) JsonUtile.json2Obj(moveUrls, List.class, IllVideoEntity.class);
        }
        return moveUrl;
    }

    public void setMoveUrl(List<IllVideoEntity> moveUrl) {
        this.moveUrl = moveUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
